package goodroommate.dao;

import java.util.ArrayList;
import java.util.LinkedList;

import goodroommate.dal.DatabaseSession;
import goodroommate.domain.UserDetail_UserInfo;
import goodroommate.domain.UserDetail_UserInfoForKmeans;
import goodroommate.domain.UserInfo;
import goodroommate.exception.DatabaseException;

public interface IUserInfoDao {

	
	public boolean addUserInfo(UserInfo userinfo,DatabaseSession dbs)throws DatabaseException;
	
	public UserInfo getUserInfoByUserId(long userid,DatabaseSession dbs)throws DatabaseException;
	
	public LinkedList<UserDetail_UserInfo> getUserDetail_UserInfo(long userid,DatabaseSession dbs,String operateType)throws DatabaseException; 
	
	public ArrayList<UserDetail_UserInfoForKmeans> getUserGroupByKmeans(DatabaseSession dbs) throws DatabaseException;

	public ArrayList<UserDetail_UserInfoForKmeans> getUserGroupFormComputingPlatform(int groupid, DatabaseSession dbs)
			throws DatabaseException;

}
